package com.community.service;

import com.community.common.ServerResponse;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface IQuestionService {



    ServerResponse<String> add(Map paramMap,HttpServletRequest request);

    ServerResponse<List<Map>> selectTitleByStr(String str);

    ServerResponse<String> update(Map paramMap,HttpServletRequest request);


    ServerResponse<PageInfo> selectByParam(int pageNum,int questionType,HttpServletRequest request);

    ServerResponse<Map> selectById(Integer id,HttpServletRequest request);

    ServerResponse<List<Map>> selectQuestionAnswer(Integer questionId,HttpServletRequest request);
}
